package com.rfid.system.mapper;

import java.util.List;
import java.util.Map;

import com.rfid.system.domain.TOrderTotal;
import com.rfid.system.domain.response.OrderInfoResponseVO;
import org.apache.ibatis.annotations.Param;

/**
 * 单据总Mapper接口
 *
 * @author fangchen
 * @date 2020-12-24
 */
public interface TOrderTotalMapper {
    /**
     * 查询单据总
     *
     * @param id 单据总ID
     * @return 单据总
     */
    public TOrderTotal selectTOrderTotalById(Long id);

    /**
     * 查询单据总列表
     *
     * @param tOrderTotal 单据总
     * @return 单据总集合
     */
    public List<TOrderTotal> selectTOrderTotalList(TOrderTotal tOrderTotal);

    /**
     * 新增单据总
     *
     * @param tOrderTotal 单据总
     * @return 结果
     */
    public int insertTOrderTotal(TOrderTotal tOrderTotal);

    /**
     * 修改单据总
     *
     * @param tOrderTotal 单据总
     * @return 结果
     */
    public int updateTOrderTotal(TOrderTotal tOrderTotal);

    /**
     * 删除单据总
     *
     * @param id 单据总ID
     * @return 结果
     */
    public int deleteTOrderTotalById(Long id);

    /**
     * 批量删除单据总
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTOrderTotalByIds(String[] ids);

    OrderInfoResponseVO selectOrderInfo(@Param("orderNo")  String orderNo);

    List<Map<String, Object>> getProductInfo(@Param("orderNo")  String orderNo);

    TOrderTotal getLastData();
}
